<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
	<!--header start-->
	<header class="header white-bg">
		<div class="sidebar-toggle-box">
			<div data-original-title="Toggle Navigation" data-placement="right" class="icon-reorder tooltips"></div>
		</div>
		<!--logo start-->
		<a href="${pageContext.request.contextPath}" class="logo" >AtJava
			<span>Nebula</span>
		</a>
		<!--logo end-->
		<div class="nav notify-row" id="top_menu">
			<!--  notification start -->
			<ul class="nav top-menu">
			<!-- settings start -->
			<li class="dropdown">
				<a data-toggle="dropdown" class="dropdown-toggle" href="#">
					<i class="icon-tasks"></i>
					<span class="badge bg-success">6</span>
				</a>
				<ul class="dropdown-menu extended tasks-bar">
					<div class="notify-arrow notify-arrow-green"></div>
					<li>
						<p class="green">You have 6 pending tasks</p>
					</li>
					<li>
						<a href="#">
							<div class="task-info">
								<div class="desc">Dashboard v1.3</div>
								<div class="percent">40%</div>
							</div>
							<div class="progress progress-striped">
								<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
									<span class="sr-only">40% Complete (success)</span>
								</div>
							</div>
						</a>
					</li>
					<li>
						<a href="#">
							<div class="task-info">
								<div class="desc">Database Update</div>
								<div class="percent">60%</div>
							</div>
							<div class="progress progress-striped">
								<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
									<span class="sr-only">60% Complete (warning)</span>
								</div>
							</div>
						</a>
					</li>
					<li>
						<a href="#">
							<div class="task-info">
								<div class="desc">Iphone Development</div>
								<div class="percent">87%</div>
							</div>
							<div class="progress progress-striped">
								<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 87%">
									<span class="sr-only">87% Complete</span>
								</div>
							</div>
						</a>
					</li>
					<li>
						<a href="#">
							<div class="task-info">
								<div class="desc">Mobile App</div>
								<div class="percent">33%</div>
							</div>
							<div class="progress progress-striped">
								<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 33%">
									<span class="sr-only">33% Complete (danger)</span>
								</div>
							</div>
						</a>
					</li>
					<li>
						<a href="#">
							<div class="task-info">
								<div class="desc">Dashboard v1.3</div>
								<div class="percent">45%</div>
							</div>
							<div class="progress progress-striped active">
								<div class="progress-bar"  role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
									<span class="sr-only">45% Complete</span>
								</div>
							</div>

						</a>
					</li>
					<li class="external">
						<a href="#">See All Tasks</a>
					</li>
				</ul>
			</li>
			<!-- settings end -->
			<!-- inbox dropdown start-->
			<li id="header_inbox_bar" class="dropdown">
				<a data-toggle="dropdown" class="dropdown-toggle" href="#">
					<i class="icon-envelope-alt"></i>
					<span class="badge bg-important">5</span>
				</a>
				<ul class="dropdown-menu extended inbox">
					<div class="notify-arrow notify-arrow-red"></div>
					<li>
						<p class="red">You have 5 new messages</p>
					</li>
					<li>
						<a href="#">
							<span class="photo"><img alt="avatar" src="${resPath}/img/avatar-mini.jpg"></span>
									<span class="subject">
									<span class="from">Jonathan Smith</span>
									<span class="time">Just now</span>
									</span>
									<span class="message">
										Hello, this is an example msg.
									</span>
						</a>
					</li>
					<li>
						<a href="#">
							<span class="photo"><img alt="avatar" src="${resPath}/img/avatar-mini2.jpg"></span>
									<span class="subject">
									<span class="from">Jhon Doe</span>
									<span class="time">10 mins</span>
									</span>
									<span class="message">
									 Hi, Jhon Doe Bhai how are you ?
									</span>
						</a>
					</li>
					<li>
						<a href="#">
							<span class="photo"><img alt="avatar" src="${resPath}/img/avatar-mini3.jpg"></span>
									<span class="subject">
									<span class="from">Jason Stathum</span>
									<span class="time">3 hrs</span>
									</span>
									<span class="message">
										This is awesome dashboard.
									</span>
						</a>
					</li>
					<li>
						<a href="#">
							<span class="photo"><img alt="avatar" src="${resPath}/img/avatar-mini4.jpg"></span>
									<span class="subject">
									<span class="from">Jondi Rose</span>
									<span class="time">Just now</span>
									</span>
									<span class="message">
										Hello, this is metrolab
									</span>
						</a>
					</li>
					<li>
						<a href="#">See all messages</a>
					</li>
				</ul>
			</li>
			<!-- inbox dropdown end -->
			<!-- notification dropdown start-->
			<li id="header_notification_bar" class="dropdown">
				<a data-toggle="dropdown" class="dropdown-toggle" href="#">

					<i class="icon-bell-alt"></i>
					<span class="badge bg-warning">7</span>
				</a>
				<ul class="dropdown-menu extended notification">
					<div class="notify-arrow notify-arrow-yellow"></div>
					<li>
						<p class="yellow">You have 7 new notifications</p>
					</li>
					<li>
						<a href="#">
							<span class="label label-danger"><i class="icon-bolt"></i></span>
							  Server #3 overloaded.
							<span class="small italic">34 mins</span>
						</a>
					</li>
					<li>
						<a href="#">
							<span class="label label-warning"><i class="icon-bell"></i></span>
							  Server #10 not respoding.
							<span class="small italic">1 Hours</span>
						</a>
					</li>
					<li>
						<a href="#">
							<span class="label label-danger"><i class="icon-bolt"></i></span>
							  Database overloaded 24%.
							<span class="small italic">4 hrs</span>
						</a>
					</li>
					<li>
						<a href="#">
							<span class="label label-success"><i class="icon-plus"></i></span>
							  New user registered.
							<span class="small italic">Just now</span>
						</a>
					</li>
					<li>
						<a href="#">
							<span class="label label-info"><i class="icon-bullhorn"></i></span>
							  Application error.
							<span class="small italic">10 mins</span>
						</a>
					</li>
					<li>
						<a href="#">See all notifications</a>
					</li>
				</ul>
			</li>
			<!-- notification dropdown end -->
		</ul>
		</div>
		<div class="top-nav ">
			<ul class="nav pull-right top-menu">
				<%-- 
				<li>
					<input type="text" class="form-control search" placeholder="Search">
				</li> --%>
				<!-- user login dropdown start-->
				<li class="dropdown">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<img alt="" src="${resPath}/img/user-small.jpg">
						<span class="username">
							<sec:authentication property="name"/>
						</span>
						<b class="caret"></b>
					</a>
					<ul class="dropdown-menu extended logout">
						<div class="log-arrow-up"></div>
						<li><a href="#"><i class=" icon-suitcase"></i>Profile</a></li>
						<li><a href="#"><i class="icon-cog"></i> Settings</a></li>
						<li><a href="#"><i class="icon-bell-alt"></i> Notification</a></li>
						<li><a href="${basePath}/j_spring_cas_security_logout"><i class="icon-key"></i> Log Out</a></li>
					</ul>
				</li>
				<!-- user login dropdown end -->
			</ul>
		</div>
	</header>
	<!--header end-->
	<!--sidebar start-->
	<aside>
		<div id="sidebar"  class="nav-collapse ">
			<!-- sidebar menu start-->
			<ul class="sidebar-menu" id="nav-accordion">
				<c:forEach items="${nebula_model_sysmenu.childNodes}" var="menu1">
				<li class="sub-menu">
					<a href="${basePath}${menu1.link}" >
						<i class="icon-dashboard"></i>
						<span>${menu1.name}</span>
					</a>
					<c:if test="${!empty menu1.childNodes}">
					<ul class="sub">
						<c:forEach items="${menu1.childNodes}" var="menu2">
						<li <c:if test="${!empty menu2.childNodes}">class="sub-menu"</c:if> >
							<a  href="${basePath}${menu2.link }"><i class="icon-apple"></i>${menu2.name }</a>
							<c:if test="${!empty menu2.childNodes}">
							<ul class="sub">
								<c:forEach items="${menu2.childNodes}" var="menu3">
								<li><a  href="${basePath}${menu3.link}"><i class="icon-leaf"></i>${menu3.name}</a></li>
								</c:forEach>
							</ul>
							</c:if>
						</li>
						</c:forEach>
					</ul>
					</c:if>
				</li>
				</c:forEach>
				
				<%--
				<li class="sub-menu">
					<a href="javascript:;" >
						<i class="icon-sitemap"></i>
						<span>Multi level Menu</span>
					</a>
					<ul class="sub">
						<li><a  href="javascript:;">Menu Item 1</a></li>
						<li class="sub-menu">
							<a  href="boxed_page.html">Menu Item 2</a>
							<ul class="sub">
								<li><a  href="javascript:;">Menu Item 2.1</a></li>
								<li class="sub-menu">
									<a  href="javascript:;">Menu Item 3</a>
									<ul class="sub">
										<li><a  href="javascript:;">Menu Item 3.1</a></li>
										<li><a  href="javascript:;">Menu Item 3.2</a></li>
									</ul>
								</li>
							</ul>
						</li>
					</ul>
				</li>
			 	--%>
			</ul>
			<!-- sidebar menu end-->
		</div>
	</aside>
	<!--sidebar end-->